<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>相对定位</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }
        
        #box {
            width: 1200px;
            height: 900px;
            border: orchid 1px solid;
            position: absolute;
            left: 200px;
        }
        
        #head02 {
            /*
                position: relative;
                相对定位 是相对自己原来的位置定位
            */
            position: relative;
            left: 200px;
            top: 200px;
        }
    </style>
</head>

<body>
    <div id="box">
        <div id="inner-box">
            <img id="head01" src="./img/head.jpg" alt="">
            <img id="head02" src="./img/head.jpg" alt="">
        </div>
    </div>
</body>

</html>